import serveUrl from "@/config/serverAddress"; // 接口域名列表
import axios from "@/config/http"; // 导入http中创建的axios实例

const setting = {
  
  /* 
   入职设置获取列配置 
  */
  GetEmployeeEntryColumnSetting(params) {
    return axios.get(`${serveUrl.rs}/EmployeeEntryColumnSetting`, params);
  },

  /*入职设置设置列 */
  SetEmployeeEntryColumnSetting(data) {
    return axios.post(`${serveUrl.rs}/EmployeeEntryColumnSetting`, data);
  },

  /*获取空字段配置 */
  GetEmpty(params) {
    return axios.get(`${serveUrl.rs}/EmployeeEntryRegister/GetEmpty`, params);
  },

  /*查询分页 */
  GetPage(params) {
    return axios.get(`${serveUrl.rs}/EmployeeEntryRegister/GetPage`, params);
  },

  /*添加登记表 */
  AddEmployeeEntryRegister(params) {
    return axios.post(`${serveUrl.rs}/EmployeeEntryRegister`, params);
  },

  /*修改登记表 */
  EditEmployeeEntryRegister(params) {
    return axios.put(`${serveUrl.rs}/EmployeeEntryRegister`, params);
  },

  /*修改登记表 */
  DeleteEmployeeEntryRegister(params) {
    return axios.delete(`${serveUrl.rs}/EmployeeEntryRegister`, params);
  },

  /*获取登记表 */
  GetEmployeeEntryRegister(params) {
    return axios.get(`${serveUrl.rs}/EmployeeEntryRegister`, { params });
  },

  /*获取登记表下拉列表 */
  GetSelect() {
    return axios.get(`${serveUrl.rs}/EmployeeEntryRegister/GetSelect`);
  },
};

export default setting;
